package bootservice

import "fmt"

type Service interface {
	// init
	Init() error
	// interace driver
	Driver() (string, interface{})
}

type ServInfo struct {
	Type   ProcessorType `json:"type"`
	Addr   string        `json:"addr"`
	Servid int           `json:"-"`
	//Processor string    `json:"bootservice"`
}

func (m *ServInfo) String() string {
	return fmt.Sprintf("%s://%s", m.Type, m.Addr)
}
